package com.bestcem.xm.txtanls.service.dto.topic;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 话题信息DTO
 *
 * @author liheng
 * @version v1.0
 * @date 2021/5/11-20:27
 */
@Data
@NoArgsConstructor
public class TopicDTO {
    /**
     * 话题id
     */
    @JsonProperty(value = "topic_id")
    private String id;
    /**
     * 文本分析项目id
     */
    @JsonProperty(value = "anlsprojectID")
    private String projectId;
    /**
     * 话题名称
     */
    @JsonProperty(value = "name")
    private String name;
    /**
     * 话题组的id
     */

    private String topicGid;
    /**
     * 话题类型 0-话题组 1-话题
     */
    @JsonProperty(value = "ttype")
    private Integer type;
    /**
     * 话题对应关键字列表
     */
    @JsonProperty(value = "key_dict")
    @JsonInclude
    private List<String> keyDict;
    /**
     * 话题提及次数
     */
    @JsonProperty(value = "num")
    private Integer count;


    public TopicDTO(String id, String projectId, String name, String topicGid, Integer type, Integer count, List<String> keyDict) {
        this.id = id;
        this.projectId = projectId;
        this.name = name;
        this.topicGid = topicGid;
        this.type = type;
        this.keyDict = keyDict;
        this.count = count;
    }

    public TopicDTO(String id, String name, String topicGid, Integer type, List<String> keyDict) {
        this.id = id;
        this.name = name;
        this.topicGid = topicGid;
        this.type = type;
        this.keyDict = keyDict;
    }


}
